package com.ding.api.v1;

import com.alibaba.fastjson2.JSONObject;
import com.ding.infra.feign.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: ding
 * @Mail: dingpeng0831@hotmail.com
 * @CreateTime: 2023-03-27  17:20
 * @Description:
 * @Version: 1.0
 */
@RestController
public class TestFeignController {

    @Autowired
    private StudentService service;

    @GetMapping("/test")
    public ResponseEntity<JSONObject> test() {
        return service.readData();
    }
}
